package com.example.demo.entity.DTO;


import com.example.demo.enums.SenderTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author zhangjingqi
 * @data 2023/05/04
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class DialogueHistoryDTO {
    /**
     * 消息发送者
     */
    private SenderTypeEnum role;

    /**
     * 消息内容
     */
    private String content;

    public String getRole() {
        return role.getValue();
    }
}
